<?php echo View::make('admin.common.header'); ?>

<div id="header">
    <?php echo View::make('admin.common.left')->with('is_dashboard', true);?>
    <div class="fr1">
        
        <div class="main-content">
	
            <div class="box-positon">
                    <div class="rpos">当前位置: 用户管理 - 后台用户管理</div>
                        <form class="ropt" action="/admin/manager/grant">
                                <input class="add" type="submit" value="添加">
                        </form>
                    <div class="clear"></div>
            </div>

            <div class="body-box" id="list">

              <table class="footable">
                  <thead>
                    <tr>
                      <th data-class="expand">
                        <span title="">用户名</span>
                      </th>
                      <th>
                        <span title="">用户邮箱</span>
                      </th>
                      <th>
                        <span title="">用户手机</span>
                      </th>
                      <th data-hide="default">
                        性别
                      </th>
                      <th data-type="numeric" data-sort-initial="true">
                        等级
                      </th>
                      <th data-type="numeric">
                        授权时间
                      </th>
                      <th data-type="numeric" data-sort-ignore="true">
                        操作选项
                      </th>
                    </tr>
                  </thead>
                    <tbody>
                                    <?php foreach($users_list->results as $key => $value) {?>
                            <tr>
                                    <td><?php echo $value->username?></td>
                                    <td><?php echo $value->email?></td>
                                    <td><?php echo $value->phone?></td>
                                    <td><?php echo $value->gender?></td>
                                    <td>9999999999</td>
                                    <td><?php echo $value->ctime?></td>
                                    <td align="center">
                                            <span class="small">
                                                <a href="/admin/manager/grant?uid=<?php echo $value->id;?>" class="ed" title="编辑"><img alt="编辑" src="/admin/img/edit.gif"></a>
                                                &nbsp;
                                                <a href="/admin/manager/del?uid=<?php echo $value->id;?>" class="del" title="删除"><img alt="删除" src="/admin/img/cross.gif"></a>

                                            </span>	
					</td>
                            </tr>
				<?php }?>
                    </tbody>
                </table>
	
                <?php  echo View::make('admin.common.pager'); ?>
            
    </div>
        
    </div>    
</div>

<?php echo View::make('admin.common.footer'); ?>
<script type="text/javascript">
    $(function(){
       $(".footable").footable(); 
    });    
</script> 
